package com.atguigu.tingshu.user.service;

import com.atguigu.tingshu.model.user.UserInfo;
import com.atguigu.tingshu.model.user.VipServiceConfig;
import com.atguigu.tingshu.vo.user.UserPaidRecordVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface UserInfoService extends IService<UserInfo> {

    /**
     * 获取用户购买的该专辑的声音信息与免费试听声音id
     *
     * @param albumId
     * @param userId
     * @param allTrackIdList
     * @return
     */
    List<Long> getPaidTrack(Long albumId, Long userId, List<Long> allTrackIdList);

    /**
     * 判断用户是否购买了该专辑
     *
     * @param userId
     * @param albumId
     * @return
     */
    Boolean isPaidAlbum(Long userId, Long albumId);

    /**
     * 保存用户购买记录
     * @param userPaidRecordVo
     * @return
     */
    Boolean saveUserPaidRecord(UserPaidRecordVo userPaidRecordVo);
}
